﻿package mortal.game.net.command.market
{
    import Framework.MQ.*;
    import Message.Game.*;
    import extend.language.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class MarketResultSellItemCommand extends BroadCastCall
    {

        public function MarketResultSellItemCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            super.call(param1);
            var _loc_2:* = param1.messageBase as SMarketResult;
            if (_loc_2)
            {
                if (_loc_2.result == EMarketResult._EMarketResultSuccess)
                {
                    NetDispatcher.dispatchCmd(ServerCommand.MarketResultSellItem, null);
                    MsgManager.showRollTipsMsg(Language.getString(20513));
                }
                else if (_loc_2.result == EMarketResult._EMarketResultFail)
                {
                    MsgManager.showRollTipsMsg(Language.getString(20514));
                }
            }
            return;
        }// end function

    }
}
